package cn.findviewbydream.evil.main.service.impl;

import cn.findviewbydream.evil.main.dao.IndexOrderDAO;
import cn.findviewbydream.evil.main.entity.OrderEntity;
import cn.findviewbydream.evil.main.service.IndexOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.main.service.impl
 * 时间：17-2-4
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：
 ********************************************/
@Service
public class IndexOrderServiceImpl implements IndexOrderService
{
    private final IndexOrderDAO indexOrderDAO;

    @Autowired
    public IndexOrderServiceImpl(IndexOrderDAO indexOrderDAO) {this.indexOrderDAO = indexOrderDAO;}

    @Override
    public List<OrderEntity> getUnFinishOrderList()
    {
        return indexOrderDAO.selectUnFinishOrderList();
    }
}
